package fpt.hungnp6.boxlauncher;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		Button bt_app    = (Button) findViewById(R.id.bt_app);
		Button bt_tv     = (Button) findViewById(R.id.bt_tv);
		Button bt_brower = (Button) findViewById(R.id.bt_brower);
		bt_app.setOnClickListener(onClickListener);
		bt_brower.setOnClickListener(onClickListener);
		bt_tv.setOnClickListener(onClickListener);

	}

	private OnClickListener onClickListener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			switch (v.getId()) {
			
			case R.id.bt_app:
				Intent intent = new Intent(MainActivity.this, App.class);
				startActivity(intent);
				
				
				break;
			case R.id.bt_brower:
				// DO something
				break;
			case R.id.bt_tv:
				// DO something
				break;
			}

		}
	};


}
